package com.yhq.spring.event.exception;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author hqyin
 * @date 2023/3/13 3:04 下午
 */
@Component
@Slf4j
public class ExEventListener {
   @EventListener
    public void handle(ExEvent exEvent) {
        log.info("receive ex event：{}", exEvent.getMsgId());
        throw new RuntimeException("xxxx");
    }
}
